fun foo() {
    if (a) {
<selection>        <caret>f()
        g()
</selection>    }
}